set

function set(index: integer, value: T): T

Sets the element at the specified index. Fails if the provided index is out of bounds.

Since

0.6.0

Parameters

index

The index of the element to set.

value

The value to set.